package com.example.registration.dao;


import com.example.registration.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 登录
 *
 * @program: springboot_smbms
 * @Description: $
 * @Param: $
 * @return: $
 * @Author: xieyongde
 * @Date: 2019-08-15
 */
@Mapper
public interface LoginMapper {
    //登录
    public Admin getUserByUserCode(@Param("name") String name);

    //根据id查询管理员信息
    public Admin showAdmin(@Param("id") Integer id);

    // 修改密码
    public Integer updatepPassword(@Param("newpassword") String newpassword, @Param("id") Integer id);
}